From 879b63b37cd3347f8a5992b00b9f90da427b1503 Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Tue, 2 Aug 2005 17:59:59 +0000 Subject: [PATCH] Fix up non-valgrind case to send stderr to file like valgrind case does. (Having trouble with signal delivery and valgrind, causing spurious test timeouts) Signed-off-by: Rusty Russel Signed-off-by: Christian Limpach --- tools/xenstore/testsuite/test.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/xenstore/testsuite/test.sh b/tools/xenstore/testsuite/test.sh index 29070030e3..78386bf931 100755 --- a/tools/xenstore/testsuite/test.sh +++ b/tools/xenstore/testsuite/test.sh @@ -14,7 +14,10 @@ run_test() PID=`cat /tmp/pid` rm /tmp/pid else - PID=`./xenstored_test --output-pid` + ./xenstored_test --output-pid --trace-file=testsuite/tmp/trace --no-fork > /tmp/pid 2> testsuite/tmp/xenstored_errors & + while [ ! -s /tmp/pid ]; do sleep 0; done + PID=`cat /tmp/pid` + rm /tmp/pid fi if sh -e $2 $1; then if [ -s testsuite/tmp/vgout ]; then -- 2.30.2